import request from '@/utils/request'

// 查询会计项目明细列表
export function listAccountDetail(query) {
  return request({
    url: '/system/accountDetail/list',
    method: 'get',
    params: query
  })
}

// 查询会计项目明细详细
export function getAccountDetail(rid) {
  return request({
    url: '/system/accountDetail/' + rid,
    method: 'get'
  })
}

// 新增会计项目明细
export function addAccountDetail(data) {
  return request({
    url: '/system/accountDetail',
    method: 'post',
    data: data
  })
}

// 修改会计项目明细
export function updateAccountDetail(data) {
  return request({
    url: '/system/accountDetail',
    method: 'put',
    data: data
  })
}

// 删除会计项目明细
export function delAccountDetail(rid) {
  return request({
    url: '/system/accountDetail/' + rid,
    method: 'delete'
  })
}
